#ifndef CONNECTIONSELECTOR_H
#define CONNECTIONSELECTOR_H

#include <QDialog>
#include <connectioninterface.h>
#include <QStringList>
#include <QUrl>

namespace Ui {
    class ConnectionSelector;
}

class ConnectionSelector : public QDialog
{
    Q_OBJECT

public:
    explicit ConnectionSelector(QWidget *parent = 0);
    void setConnectionInteface(ConnectionInterface* CI);
    ~ConnectionSelector();

private:
    Ui::ConnectionSelector *ui;
    ConnectionInterface* _CI;
    void populateList();
    QStringList _ServerList;


private slots:
    void modifyConnection(QUrl connection);
    void editConnection();
    void addConnection();
    void removeConnection();

};

#endif // CONNECTIONSELECTOR_H
